<?php
error_reporting(0);

define("ROOT_DIR", dirname(__FILE__));
define("DS", DIRECTORY_SEPARATOR);
define("LIB_DIR", ROOT_DIR . DS . 'Library');
define("LIB_PIDGUIN_DIR", LIB_DIR . DS . 'Pidguin');
define("APP_DIR", ROOT_DIR . DS . 'Application');
define("MODELS_DIR", ROOT_DIR . DS . 'Application' . DS . 'Models');

require LIB_PIDGUIN_DIR . DS . 'Error.php';
/*$error = Pidguin_Error::getInstance();
$error->setErrorHandler();*/

try {
	require LIB_PIDGUIN_DIR . DS. 'Application.php';
	$app = Pidguin_Application::getInstance();
	$app->setConfig(APP_DIR . DS . 'config.ini');
	$app->execute();
} catch (Exception $e) {	
	//echo $e;
}